<!-- 委托类型选择 -->
<template>
  <div id="dialog-container">
    <el-button @click="dialogVisible = true">委托类型选择</el-button>
    <el-dialog v-dialogDrag :title="'委托类型选择操作提示'" append-to-body :visible.sync="dialogVisible" :close-on-click-modal="false"
      width="380px">
      <el-form :model="formData" :inline="true" size="small" label-width="100px">
        <el-row>
          <el-col :span="24">
            <el-form-item label="选择委托类型">
              <el-select v-model="formData.type" placeholder="请选择">
                <el-option v-for="item in typeOption" :key="item.value" :label="item.label" :value="item.value">
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button @click="dialogVisible = false">取 消</el-button>
        <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        dialogVisible: false,
        formData: {
          type: '',
          minute: ''
        },
        typeOption: [{
          value: '1',
          label: '委托型',
        }, {
          value: '2',
          label: '生产型',
        }]
      }
    }
  }

</script>
